<!--
  @author tanbiao
  @since 2019-11-21 18:56:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>价格表管理</title>
</head>
<style type="text/css">
    .one-text{
        border-radius: 1px;border: 1px solid #d2d2d2;position: absolute;left: 0;line-height: inherit;text-align: center;
    }
    .width-100{
        width: 100%;
    }
    .text-disabled{
        color: #d2d2d2 !important; cursor: not-allowed !important;background: white;
    }
    .text-enable{
        color: #666 !important;
    }
    tr td .one-text:hover{
        background:#f2f2f2  !important;
    }
    tr td .two-text:hover{
        background:#f2f2f2  !important;
    }

    .two-text{
        border-radius: 1px;border: 1px solid #d2d2d2;position: absolute;line-height: inherit;width: 45%;text-align: center
    }

    .two-text-left{
        left: 0;
    }
    .two-text-right{
        right: 0;
    }

</style>
<body>
<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <a lay-href="/service/tariff/list.action">价格表管理&nbsp;&nbsp;</a>/&nbsp;
        <span th:text="${faultTariff.tariffName}"></span>&nbsp;&nbsp;/&nbsp;
        <zmn th:text="(${product == null || product.name == null}) ? '' : ${product.name}+'/'">产品名称</zmn>
        <zmn th:text="(${faultItem == null || faultItem.itemName == null}) ? '' : ${faultItem.itemName}+'/'">项目名称</zmn>
        <span>产品价格表/城市价格/快速设置</span>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form"  action="/product/tariff/item/city/price/addCityPriceByCityGroup.action" lay-filter="zmn-form-filter">
            <input type="hidden" th:value="${faultItem.tariffId}" name="tariffId"/>
            <input type="hidden" th:value="${product.categOneId}" name="categOneId"/>
            <input type="hidden" th:value="${product.servCategId}" name="servCategId"/>
            <input type="hidden" th:value="${product.productId}" name="productId"/>
            <input type="hidden" th:value="${faultItem.groupId}" name="groupId"/>
            <input type="hidden" th:value="${faultItem.itemId}" name="itemId"/>
            <input type="hidden" th:value="${faultItem.priceStandard}" name="priceStandard"/>
        <div class="layui-card-body"  id="table_body">
            <div th:replace="product/service/item/city/price/citygroup/_table::table"/>
        </div>
            <div class="layui-form-item submit" th:if="${not #lists.isEmpty(items)}">
                <div style="margin-left: 115px" class="layui-input-block">
                    <button th:if="${#authPermit.checkPermit('/product/tariff/item/city/price/cityGroup.action')}" class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">保存</button>
                    <button class="layui-btn layui-btn-primary" id="cancel" onclick="zmnLayUtil.closeThisTabs()">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>


<script type="text/html" id="switchTpl">

    <div>
        {{#  if(d.priceStandard.indexOf('非一口价')!=-1){ }}
        <input type="text" style="text-align: right" name="negotiableMinPrice" class="two-text two-text-left text-disabled" autocomplete="off">
        <span style="width: 10%">-</span>
        <input type="text" style="text-align: right" name="negotiableMaxPrice" class="two-text two-text-right text-disabled" autocomplete="off">
        {{#  } else { }}
        <input type="text" name="price" class="one-text width-100 text-enable" style="text-align: right" autocomplete="off">
        {{#  } }}
    </div>
</script>

<script type="text/javascript" th:inline="javascript">

    var json = {
        vo:[[${vo}]],
        faultItem:[[${faultItem}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        serv_product_tariff_item_city_price_citygrop_list: "product/service/item/city/price/citygroup/zmn.plat.product.tariff.item.city.price.citygroup.list",
    }).use(['index', 'serv_product_tariff_item_city_price_citygrop_list']);

</script>
</body>
</html>